package jp.ddo.trismegistos.service.impl;

import java.util.List;

import jp.ddo.trismegistos.bean.User;
import jp.ddo.trismegistos.dao.UserDao;
import jp.ddo.trismegistos.service.AuthService;

public class AuthServiceImpl implements AuthService {

	private UserDao userDao;

	public boolean canLogin(final String userId, final String password) {
		final List<User> user = userDao.findUser(userId, password);
		return user.size() == 1;
	}
}
